﻿using System.IO;
using System.IO.Compression;
using Behaviours.Helper;

namespace Behaviours.Network.Compression
{
    public class GZipCompress : ICompression
    {
        public byte[] Encode(byte[] bytes)
        {
            return ZipHelper.Compress(bytes);
        }

        public byte[] Decode(byte[] bytes)
        {
            return ZipHelper.Decompress(bytes);
        }
    }
}